package com.syt.client.cmn;



import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;


/**
 * @Author: xxx
 * @Date: 2023/2/14 21:54
 * @Description: 字典接口
 */
@Service
@FeignClient("service-cmn")
@RequestMapping("/admin/cmn/dict")
public interface DictFeignClient {

    //根据value查询
    @GetMapping("/getName/{value}")
    public String getName(@PathVariable("value") String value);

    //根据dictCode和value查询"
    @GetMapping("/getName/{dictCode}/{value}")
    public String getName(@PathVariable("dictCode") String dictCode, @PathVariable("value") String value);

}
